<template>
  <div>
    <div class="picker-item">
      <CloudDatePicker @change="onChange"></CloudDatePicker>
    </div>
    <div class="picker-item">
      <CloudMonthPicker placeholder="Select month" @change="onChange"></CloudMonthPicker>
    </div>
    <div class="picker-item">
      <CloudRangePicker @change="onChange"></CloudRangePicker>
    </div>
    <div class="picker-item">
      <CloudWeekPicker placeholder="Select week" @change="onChange"></CloudWeekPicker>
    </div>
  </div>
</template>

<script>
  export default {
    title: '1.基本',
    subTitle: '最简单的用法，在浮层中可以选择或者输入日期。',
    data () {
      return {
        value: ''
      }
    },
    methods: {
      onChange (date, dateString) {
        console.log(date, dateString);
      },
    }
  }
</script>

<style lang="scss" scoped>
  .picker-item {
    padding-bottom: 10px;
  }
</style>